package com.maybach.common.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

public class ErrorRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * This field corresponds to the database column b2b_error_record.id
     */
    private Long id;

    /**
     * This field corresponds to the database column b2b_error_record.error_code
     */
    private String errorCode;

    /**
     * This field corresponds to the database column b2b_error_record.error_message
     */
    private String errorMessage;

    /**
     * This field corresponds to the database column b2b_error_record.exception_name
     */
    private String exceptionName;

    /**
     * This field corresponds to the database column b2b_error_record.exception_detail
     */
    private String exceptionDetail;

    /**
     * This field corresponds to the database column b2b_error_record.status
     */
    private Integer status;

    /**
     * This field corresponds to the database column b2b_error_record.gmt_create
     */
    private Date gmtCreate;

    /**
     * This field corresponds to the database column b2b_error_record.gmt_modified
     */
    private String gmtModified;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getExceptionName() {
		return exceptionName;
	}

	public void setExceptionName(String exceptionName) {
		this.exceptionName = exceptionName;
	}

	public String getExceptionDetail() {
		return exceptionDetail;
	}

	public void setExceptionDetail(String exceptionDetail) {
		this.exceptionDetail = exceptionDetail;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public String getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(String gmtModified) {
		this.gmtModified = gmtModified;
	}


    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}